package com.xueyiyue.xueyiyue.controller;

import com.xueyiyue.xueyiyue.model.sys.ApiResult;
import com.xueyiyue.xueyiyue.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author chenlixian
 * @description 测试控制器
 * @date 2020/10/10 19:23
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestService testService;
    /**
     * @return
     */
    @GetMapping("/getSqlMsg")
    public ApiResult update() {
        String msg = testService.getMsg();
        return ApiResult.ok(msg);
    }

}
